<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head>
    <title>2.无需输入用户名密码签字</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

</head>

<body>
<div style="font-size: 12px; line-height: 20px; border-bottom: dotted 1px #ccc; border-top: dotted 1px #ccc; padding: 5px;">
    <span style="color: red;">操作说明：</span>点“签字”按钮即可，插入签字时的用户名为：李志，密码默认为：111111。
    <br/> 关键代码：点右键，选择“查看源文件”，看js函数
    <span style="background-color: Yellow;">InsertHandSign()</span>

</div>
<br/>
<script type="text/javascript">
    function Save() {
        //设置保存方法
        pageofficectrl.SaveFilePage="/InsertSeal/Word/AddSign/save"
        pageofficectrl.WebSave();
    }

    function InsertHandSign() {
        try {
            pageofficectrl.zoomseal.AddHandSign("李志");
        } catch (e) {
        }
    }

    function ChangePsw() {
        pageofficectrl.zoomseal.ShowSettingsBox();
    }
    function OnPageOfficeCtrlInit() {
        // PageOffice的初始化事件回调函数，您可以在这里添加自定义按钮
        pageofficectrl.AddCustomToolButton("保存", "Save", 1);
        pageofficectrl.AddCustomToolButton("签字", "InsertHandSign()", 3);
        if(("linux")!=(pageofficectrl.ClientOS)){
            pageofficectrl.AddCustomToolButton("修改密码", "ChangePsw()", 0);
        }

    }
</script>
<div style="width: auto; height: 700px;" th:utext="${pageoffice}">
</div>
</body>
</html>
